<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>字体居中</title>
		<style>
			.s{
				text-align: center;
				height: 50px;
				font-size: 16px;
				line-height: 50px;
				border:1px solid red;
				/* padding-top: 20px; */
			}
		</style>
	</head>
	<body>
		<p class="s">
			教育改变生活
		</p>
	</body>
</html>